package org.carl.code.core;

import cn.hutool.core.io.FileUtil;
import cn.hutool.core.io.resource.ResourceUtil;
import cn.hutool.core.util.CharsetUtil;
import cn.hutool.setting.Setting;

import java.io.File;

/**
 * @author Administrator
 */
public interface PlatForm {
    /**
     * 替换源名称
     */
    ThreadLocal<String> sourceName=new ThreadLocal<>();
    /**
     * 目标
     */
    ThreadLocal<String> targetName=new ThreadLocal<>();

    /**
     * 配置文件名称
     */
    String CONFIG_SETTING_FILE_NAME = "config.setting";

    String DIR=System.getProperty("user.dir");
    /**
     * 配置文件
     */
    Setting CONFIG_SETTING = new Setting(ResourceUtil.getResource(CONFIG_SETTING_FILE_NAME), CharsetUtil.CHARSET_UTF_8, true);

    default void clean(){
        sourceName.remove();
        targetName.remove();
    }
}
